//#######################################
//#
//# Include
//#
  #include <string.h>
  #include <fcntl.h>
  #include <limits.h>
  #include <sys/types.h>
  #include <sys/stat.h>
  #include <ctype.h>
  #include <unistd.h>
  #include <pthread.h>
  #include <stdlib.h>
  #include <stdio.h>
  #include <curses.h>
  #include "csapp.h"
  #include "gestionNcurses.h"

//#######################################
//#
//# Define
//#
  #define TRUE 1
  #define FALSE 0
  #define DELREQUETE "Q %u."
  #define MESSAGE_SIZE 300
  #define TRANSACTION_SIZE 300


//#######################################
//#
//# Definition des variable
//#
  WINDOW *menu_Window_ptr;
  WINDOW *listMessage_Window_ptr;
  WINDOW *Requete_Window_ptr;
  WINDOW *BordurelistMessage_Window_ptr;
  pthread_t threadLectureMessage;
  int AttenteMessage;


//#######################################
//#
//# Definition des fonctions
//#
  void MessagerieW();
  void* RecevoirRequete(void* _server);
  void GestionErreurConnectionSocket();



//#######################################
//#
//# Definition des structures
//#
struct Info_FIFO_Transaction
{				
	unsigned int pid_client; 		
	char transaction[TRANSACTION_SIZE];					
};	

struct Server_Response
{	
	char ack;				
	char message[MESSAGE_SIZE];					
};	


